<script setup>
</script>

<template>
    <div class="list-item">
        <!-- 导航区域 -->
        <span>精选专题</span>
        <span>查看更多></span>
        <!-- 轮播图 -->
        <div class="list-item-banner">
            <img src="../images/banner3.jpg" alt="">
        </div>
        <!-- 商品图 -->
        <div class="goods-group">
            <div class="goods">
                <!-- 图片 -->
                <div><img src="../images/photo1.jpg" alt=""></div>
                <!-- 文字 -->
                <p>真维斯白色t女2023夏季纯棉宽松短袖时尚休闲宽松正肩内搭上衣</p>
                <!-- 价格 -->
                <div class="div1">
                    <span>￥29.3</span>
                    <del class="del1">￥99</del>
                </div>

            </div>
            <div class="goods">
                <!-- 图片 -->
                <div><img src="../images/photo2.jpg" alt=""></div>
                <!-- 文字 -->
                <p>真维斯白色t恤女2023夏季纯棉宽松短袖时尚休闲宽松正肩内搭上衣</p>
                <!-- 价格 -->
                <div class="div1">
                    <span>￥29.3</span>
                    <del class="del1">￥99</del>
                </div>

            </div>
            <div class="goods">
                <!-- 图片 -->
                <div><img src="../images/photo3.jpg" alt=""></div>
                <!-- 文字 -->
                <p>真维斯白色t恤女2023夏季纯棉宽松短袖时尚休闲宽松正肩内搭上衣</p>
                <!-- 价格 -->
                <div class="div1">
                    <span>￥29.3</span>
                    <del class="del1">￥99</del>
                </div>

            </div>
        </div>
    </div>
</template>

<style scoped>
/* 移动端样式 */
@media screen and (min-width:0) and (max-width:1024px) {
    .list-item span {
        font-size: 1.2rem;
    }

    .list-item-banner img:nth-child(1) {
        width: 100%;
    }

    .goods-group .goods {
        width: 33.3%;
    }

    .goods-group .goods img {
        width: 33.3%;
    }
}

@media screen and (min-width: 1025px) {

    /* 在屏幕宽度大于等于1025px时应用的样式 */
    .list-item span {
        width: 100%;
        font-size: 1.2rem;
    }

    .list-item-banner img:nth-child(1) {
        width: 100%;
    }

    .goods-group .goods {
        width: 33.3%;
    }

    .goods-group .goods img {
        width: 33.3%;
    }
}

/* 导航区域 */

.list-item {
    position: relative;
    margin-top: 1rem;
    background-color: #fff;
    /* margin-bottom: -.3rem; */
}

.list-item>span {
    width: 6rem;
    height: 3rem;
    font-size: 1.4rem;
    text-align: center;
    line-height: 3rem;
}

.list-item>span:nth-child(2) {
    width: 6rem;
    font-size: 1rem;
    float: right;
    color: #868686;
    margin-bottom: 1rem;
}


/* 轮播图 */

.list-item-banner {
    display: block;
    width: 100%;
    margin-bottom: -.2rem;
}


.goods-group {
    width: 100%;
    background-color: #fff;
    overflow: hidden;
}

.goods-group .goods {
    width: 33.3%;
    float: left;
}

.goods-group .goods img {
    width: 100%;
}

.goods-group .goods p {
    display: block;
    color: #6c6c6c;
    font-size: 0.512rem;
    width: 100%;
    height: 4rem;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
}

.div1 {
    box-sizing: border-box;
    padding-bottom: 1rem;
    width: 100%;
    margin-left: 2.5rem;
}

.del1 {
    color: #cbcbcb;
    font-size: .4rem;
}
</style>
